package com.mutual.reins.trial.service.impl;

import com.mutual.reins.trial.mapper.PrptReinsShareMapper;
import com.mutual.reins.trial.service.IPrptReinsShareService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mutual.reins.trial.entity.PrptReinsShare;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author CodeGenerate
 * @since 2021-04-09
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class PrptReinsShareServiceImpl extends ServiceImpl<PrptReinsShareMapper, PrptReinsShare> implements IPrptReinsShareService {

    @Autowired
    private PrptReinsShareMapper prptReinsShareMapper;
    /**
     * 根据投保单号获取自留合约保额
     *
     * @param proposalNo 投保单号
     * @return 返回再保自留保额
     */
    @Override
    public Long sumRetentionValue(String proposalNo) {
        return prptReinsShareMapper.sumRetentionValue(proposalNo);
    }
}
